<head>
	<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
	<script>
	function onloadActions(){
		var a = $(".main");
		$(".main").each(function(index, element){
			console.log(index, element);
		})
	}
	$(document).ready(onloadActions);
	</script>
</head>
<body>
	<div id="firstcontainer">
		<div class="main" id="selectme">This is the first div.</div>
		<div class="main" id="selectmetoo">This is the second div.</div>
	</div>
	<div id="secondcontainer">
		<div class="main" id="selectmethree">This is the third div.</div>
		<div class="main" id="selectmefour">This is the fourth div.</div>
	</div>
</body>
